#pragma	once


#define	CREATEFONT(nm, sz, shape) \
	CreateFont((sz),0,0,0,(shape),FALSE,FALSE,0,ANSI_CHARSET,\
				OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY,\
				DEFAULT_PITCH|FF_SWISS, (nm))

#define	CREATEFONT2(obj, nm, sz, shape) \
	(obj).CreateFont((sz),0,0,0,(shape),FALSE,FALSE,0,ANSI_CHARSET,\
				OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY,\
				DEFAULT_PITCH|FF_SWISS, (nm))


int	getYear();
int	getMonth();
int	getDay();
int	getHour();
int	getMinute();
int	getSecond();

int	getWidth(RECT r);
int	getHeight(RECT r);
void makeRoundRect(GraphicsPath& gpth, Rect* rc, INT radius);

BOOL IfFileExist(WCHAR *pchDir);
void sortList(CStringList& sList, BOOL bAscend);
void getFileList(CStringList& sList, LPCTSTR sPath, LPCTSTR sFmt);
BOOL selectFolder(HWND hWnd, TCHAR* szPath);
void getPixelPerMM(HDC hDC, double *xppm, double *yppm);
void DrawString(HDC hDC, LPCTSTR lpStr, int len, RECT* pRect, UINT uFormat);

BOOL GetDiskSpaceInfo(LPCTSTR diskVol, double* avail, double* total, double* free);
BOOL formatDrive(HWND hWnd, LPCTSTR szDrv);

void CheckUsb();

//void Hangul_On(HWND hWnd, DWORD* pdwConv = NULL, DWORD* pdwSent = NULL);
//void Hangul_Off(HWND hWnd, DWORD* pdwConv = NULL, DWORD* pdwSent = NULL);